package com.qdxwx.data.mapper.course;


import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * CourseTeacher接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface CourseTeacherMapper {

    /**
     * 添加课程与讲师的关联数
     */
    int insertCourseTeacher(int courseId, int teacherId);
    /**
     * 删除课程与讲师的关联数据
     * @param courseId 课程ID
     */
    int deleteByCourseId(int courseId);

    List<Integer> selectTeacherIdList(int courseId);

    int selectCountByTeacherId(int id);
}